WDog changes to 
0v3.2 29/01/2003 by WDog

Armor Effects-LD v1.5b - (Tribunal Required)
Released 1/12/03 by By LDones

LDones@hiredgoons.net
http://www.hiredgoons.net/MWFiles


Please refer to original "readme_ArmorEffects-LD.txt"

I can be contacted on WDog@bigpond.net.au

26/01/2003

I have changed the scripts so that they chain through them all.

Under the new scheme only _ArmorCalc-LD runs all the time. All the other scripts removed from the start list.

_ArmorCalc-LD is the control script.  If you want to force a recalc of all the scripts you need to put the logic in this script or add this line to your code

	set "_ArmorCalc-LD".aspstate to -9

This script checks for any changes in armour worn, _isTotalBonus form the Thief Experience MOD or a spell effect of Restore Skill.  It also has a test for Restore Attribute effect currently commented out


If there are any changes _ArmorCalc-LD will call
	
	_RemoveArmourEffectsLD
	
When _RemoveArmourEffectsLD is completed it will start script 

	_MedArmorSneakPenLD
	
And when _MedArmorSneakPenLD finishes it will start

	_HeavyArmorSneakPenLD

When _HeavyArmorSneakPenLD completes it will start 
	
	_ShieldSneakPenLD
	
If you want to run _HeavyArmorSneakAgilityPenLD instead of _HeavyArmorSneakPenLD you need to change the line in _MedArmorSneakPenLD and remove the comment on the restore attribute test in _ArmorCalc-LD script.

Scripts still contain numerous comments and Debug code that can be removed


28/01/2003

Added do once test for restore attribute / skills so that we only update once when any of the tested effects is active.

Global variable _RunAgilityPen needs to be set to 1 for agility penalty to be applied. _MedArmorSneakPenLD checks this variable to determine whether to call _HeavyArmorSneakPenLD or _HeavyArmorSneakAgilityPenLD. No more editing script to make the different version.

Created _StartSneakPen to allow user to choose if the agility penalty applies on load of the Mod. This script runs once and stops itself.  It starts _ArmorCalc-LD.  _ArmorCalc-LD  removed form start scripts list and added _StartSneakPen for the combined version only.

To turn on agility penality in the console type
	set "_RunAgilityPen" to 1 

To turn off agility penality in the console type
	set "_RunAgilityPen" to 0 

29/01/2003
Added _setAgility script to make creating the esp easier.  Just change one line in Script to convert between versions.

eg
		set "_RunAgilityPen" to 0 ; No Agility Penalty version

Removed _ArmourCalc-LD from the global start scripts list.

_SetAgility is set as a start script that will be loaded every time the game is loaded and it runs once then stops itself. It also starts _ArmourCalc-LD if its not running and sets its "state" variable to -9 to force an initial recalculation of penalties because if you have just applied the mod it doesnt know the initial armour values.


Testing timer script in armour calc to reduce load as suggested by Cool Demon. 
I have chosen an interval of 2 seconds.  Have also added the code DodgeMod

From testing the Timer script must be after testing of Spell Effects.

TODO  Rename _SetAgility to _SetAgilityLD
